/**
 *
 */
package com.ybkj.daijia.server.service.impl;


import com.ybkj.daijia.server.mapper.WeixinManagerSettingMapper;
import com.ybkj.daijia.server.model.WeixinManagerSetting;
import com.ybkj.daijia.server.service.WeixinManagerSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Shine
 *
 */
@Service
public class DefaultWeixinManagerSettingService implements WeixinManagerSettingService {

    @Autowired
    private WeixinManagerSettingMapper weixinManagerSettingMapper;


    @Transactional(rollbackFor = Exception.class)
    public WeixinManagerSetting insertRecord(WeixinManagerSetting weixinManagerSetting) {

        weixinManagerSettingMapper.insertRecord(weixinManagerSetting);

        return weixinManagerSetting;
    }

    public WeixinManagerSetting findOne() {

        return weixinManagerSettingMapper.selectOne();
    }


    @Override
    @Transactional(rollbackFor = Exception.class)
    public int updateByPrimaryKey(WeixinManagerSetting weixinManagerSetting) {

        return weixinManagerSettingMapper.updateByPrimaryKey(weixinManagerSetting);
    }


}